﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="WorkFlow_Control_WFTitle" Codebehind="WFTitle.ascx.cs" %>
<table width="100%">
<tr height="39px">
<td width="32px"><img alt="" src="../Images/bman.gif" /></td>
<td valign="middle" align="left">
    <asp:Label ID="lblTitle" runat="server"></asp:Label></td>
<td align="right"  valign="middle">
<asp:Label ID="Label1" runat="server" Text="操作剩余：" Visible="false"></asp:Label><span id="spTimeOut" ></span><asp:Label ID="Label2" runat="server" Text="秒"  Visible="false"></asp:Label>
    &nbsp;<asp:CheckBox ID="chkMessage" runat="server" Text="发送通知消息"  Visible="false" />&nbsp;</td>
</tr>
<tr style="height:1px">
<td colspan="3"><div style="border-bottom:solid 1px #BABABA; height:1px; overflow:hidden; border-top-style:none; border-right-style:none; border-left-style:none;"
</td>
</tr>
</table>
<input id="HidLeaveTime" type="hidden" runat="server" style="width:0px" />
<script language="javascript" type="text/javascript">
function TimeOutCancel(isec)
{         
    var sec = isec;
    for(var i=sec;i>=0;i--) 
    { 
        window.setTimeout('doSetTimeOut(' + i + ')', (sec-i) * 1000); 
    } 
} 
function doSetTimeOut(num)
{ 
    document.getElementById('spTimeOut').innerHTML = '<b><font size=3 color="red">'+num+'</font></b>' ; 
    document.getElementById('<%=HidLeaveTime.ClientID %>').value = num+'';
    if(num == 0) { window.returnValue='false';window.close();} 
}
</script>
    